<template>
  <div class="app-container">
    <!-- 列表 -->
    <el-table :data="list">
      <el-table-column label="流程标识"
        align="center"
        prop="key" />
      <el-table-column label="流程名称"
        align="center"
        prop="name"
        width="200"></el-table-column>
      <el-table-column label="操作"
        align="center"
        width="450"
        fixed="right">
        <template v-slot="scope">
          <el-button size="mini"
            type="text"
            icon="el-icon-setting"
            @click="handleDesign(scope.row)">设计流程</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'model',
  components: {},
  data() {
    return {
      // 表格数据
      list: [{ key: '3cd88b2c-a09c-11ed-b5b4-acde48001122', name: '1111111' }],
      // BPMN 数据
      showBpmnOpen: false,
      bpmnXML: null,
      bpmnControlForm: {
        prefix: 'flowable'
      }
    }
  },
  created() {},
  methods: {
    /** 设计按钮操作 */
    handleDesign(row) {
      this.$router.push({
        name: 'ProcessonEdit',
        query: {
          modelId: '3cd88b2c-a09c-11ed-b5b4-acde48001122'
        }
      })
    }
  }
}
</script>

<style lang="scss">
.my-process-designer {
  height: calc(100vh - 200px);
}
</style>
